package com.wifeacountbook.util;

import android.net.Uri;
import android.provider.BaseColumns;

public final class AcountKeeper {

	public static final String AUTHORITY = "com.wifeacountbook.provider.AcountKeeper";
	
	public static final class ConsumeDetail implements BaseColumns{
	    
		public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/consumeDetail");
		public static final String CONTENT_PATH = "consumeDetail";
		
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.google.consumeDetail";
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.google.consumeDetail";
		/**
         * The default sort order for this table
         */
        public static final String DEFAULT_SORT_ORDER = "time DESC";

        //columns define
		public static final String CONSUMETYPEID = "consumetype_id";
		public static final String CONSUMEITEM = "consume_item";
		public static final String ADDRESS = "address";
		public static final String DESC = "desc";
		/**
         * The timestamp for when the ConsumeInfo was created
         * <P>Type: INTEGER (long from System.curentTimeMillis())</P>
         */
		public static final String CONSUMETIME = "time";
		public static final String PAYTYPE = "payType";
		public static final String ACOUNTID = "acount_id";
		public static final String MONEY = "money";
		
	}
	
	//IncomeDetail table
	public static final class IncomeDetail implements BaseColumns{
		private IncomeDetail(){}
		public static final Uri CONTENT_URI = Uri.parse("content://com.wifeacountbook.provider.AcountKeeper/incomeDetail");
		public static final String CONTENT_PATH = "incomeDetail";
		
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.google.incomeeDetail";
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.google.incomeDetail";
		
		public static final String DEFAULT_SORT_ORDER = "time DESC";
		
		//column define.
		public static final String INCOMETYPEID = "incometype_id";
		public static final String INCOMEITEM = "income_item";
		public static final String ADDRESS = "address";
		public static final String DESC = "desc";
		/**
         * The timestamp for when the ConsumeInfo was created
         * <P>Type: INTEGER (long from System.curentTimeMillis())</P>
         */
		public static final String INCOMETIME = "time";
		public static final String PAYTYPE = "payType";
		public static final String ACOUNTID = "acount_id";
		public static final String MONEY = "money";
	}
	
	public static final class ConsumeType implements BaseColumns{
		
		public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/consumeType");
		public static final String CONTENT_PATH = "consumeType";
		
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.google.consumeType";
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.google.consumeType";
		
		/**
         * The default sort order for this table
         */
        public static final String DEFAULT_SORT_ORDER = "typeName DESC";

		
		public static final String TYPENAME = "typeName";
		public static final String TYPE = "type"; //recognize income or consume or anyothers.0 :consume;1 :income;...
		public static final String  LANG = "language";
		public static final String CONSUME_TYPE_COLUMN1 = "column1";//reserved column
	}
}
